package com.zsc.wxm.ysh.anjo.member.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.zsc.wxm.ysh.anjo.service.base.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author playmaker
 * @since 2021-01-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Member对象", description="")
@NoArgsConstructor
public class Member extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("电话号码")
    private String phone;

    @ApiModelProperty("头像路径")
    private String avatar;

    @ApiModelProperty("用户状态0正常、1停用")
    private Integer state;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty(value = "身份证")
    private String identityId;

    @ApiModelProperty("是否为房东")
    @TableField(value = "is_landlord")
    private Boolean landlord;

    @ApiModelProperty(value = "0正常、1删除")
    @TableField(value = "is_deleted",select = false)
    @TableLogic
    private Integer deleted;


}
